<html>
<head>
    <link rel="stylesheet" type="text/css" href="css/tips.css">
</head>
<body>
    <p>
        The Extract Constant refactoring makes your source code easier to read and maintain. It also helps you avoid using hard-coded constants without any explanations about their values or purpose.</p>
    <p>
        For example, in the code fragment below, you could select a constant in the code</p>
    <p class="image">
        <img src="images/ExtractConstant/image1.png"></p>
    <p>
        and press <span class="shortcut">&shortcut:IntroduceConstant;</span>
        (<span class="control">Refactor | Extract Constant</span>).</p>
    <p>
        This will result in the following:</p>
    <p class="image">
        <img src="images/ExtractConstant/image2.png"></p>
</body>
</html>
